package erfgame.core;

@SuppressWarnings("serial")
public class Point3DAndRotation extends Point3D {
	
	public Rotation rotation;
	
	public Point3DAndRotation() {
		
	}
	
	public Point3DAndRotation( int x, int y, int z ) {
		super( x, y, z );
	}
	
	public Point3DAndRotation( int x, int y, int z, Rotation rotation ) {
		super( x, y, z );
		this.rotation = rotation;
	}

	@Override
	public boolean equals(Point3D p) {
		return super.equals(p) && ((Point3DAndRotation)p).rotation == rotation;
	}

	@Override
	public int hashCode() {
		return super.hashCode() * (rotation.getDegrees()+1);
	}
}
